//
//  utils.h
//  HZHome
//
//  Created by SunShine on 13-9-20.
//  Copyright (c) 2013年 xzysun. All rights reserved.
//

#import <Foundation/Foundation.h>

//获取自定义的返回按钮
UIBarButtonItem *autoavBackButton(id iTarget, SEL iSelector);
UIBarButtonItem *autoavBackButton(id iTarget, SEL iSelector);
UIBarButtonItem *autoavBackButton(id iTarget, SEL iSelector);

//获取一个自定义的导航栏按钮
UIBarButtonItem *getCustomNavButton(NSString *iTitle,id iTarget, SEL iSelector);
UIBarButtonItem *customNavButton(id iTarget, SEL iSelector);
UIBarButtonItem *rightNavButton(id iTarget, SEL iSelector, NSString *imageName);
UIBarButtonItem *rightNavBtnWithImgName(NSString *imageName,id iTarget, SEL iSelector);

BOOL isBlankString(NSString *string);
id getObjectFromDic(Class itemClass, NSDictionary *dic);

//获取设备标识
NSString *getDeviceIdentifier();
NSString *md5HexDigest(NSString *password);
int isStart;////判断是否已经登录-/**0代表未登录，1代表已登录。2，代表已登录注消**/